export default {
	methods: {
		loginFun() {
			const {
				account,
				password,
				loginType
			} = this;
			const config = {}
			if (!account) {
				this.$toast({
					title: "请输入手机号",
				});
				return;
			}
			
			if (this.loginType == 1 && !password) {
				
				this.$toast({
					title: "请输入密码",
				});
				return;
			}
			if (this.loginType == 2 && !code) {
				this.$toast({
					title: "请输入验证码",
				});
				return;
			}
			if (!this.isAgree) {
				this.$emit('agree')
				return;
			}
			// 这里只表示验证成功 
			return this.$emit("success", {
				account,
				password,
			})
		}
	}
}